#pragma once

#include <stdint.h>

#define ROL_L 0x01
#define ROL_H 0x02
#define PIT_L 0x04
#define PIT_H 0x08
#define YAW_L 0x10
#define YAW_H 0x20
#define THR_L 0x40
#define THR_H 0x80

namespace NXMFC
{

class rc
{
public:
    rc();

    uint32_t checkStick(uint16_t rol, uint16_t pit, uint16_t thr, uint16_t yaw);
    bool isLeftStickBottomRight(uint32_t flags);//flags: @checkStick()
    bool isLeftStickBottomLeft(uint32_t flags);
    bool isRightStickBottomLeft(uint32_t flags);

private:
    uint8_t stick_flag;
    uint8_t rc_delay;
};

}